package views

import (
	"go_web/common"
	"go_web/service"
	"log"
	"net/http"
)

func (h *HTMLApi) Writing(w http.ResponseWriter, r *http.Request) {

	writing := common.Template.Writing

	writingRes, err := service.Writing()
	if err != nil {

		log.Println(err)

	}

	writing.WriteData(w, writingRes)
}
